home *** CD-ROM | disk | FTP | other *** search
/ Stolen Data 3 / Stolen Data 3.adf / MAG-TEXT / CODE7a < prev    next >
Text File  |  1989-01-01  |  1KB  |  31 lines

  1. have produced a sine-scrolling intro in
  2. their time, and the idea behind them is
  3. quite  simple.   I wont go into all the
  4. gory  details,  after  all you'll never
  5. learn  to code if you don't put in some
  6. effort,  so  you'll  have to figure out
  7. the technical details for yourselves.
  8.     The  main  idea behind these things
  9. is  to  use BLTAFWM and BLTALWM to mask
  10. out  a  portion  of  a  normal  blitter
  11. scroller,  be  it  a single pixel width
  12. line  or  more,  and  then OR it onto a
  13. blank  screen,  where the x position is
  14. the  same  but  the  Y  position varies
  15. according  to  a  sine-table.   If  you
  16. follow DEL's source, you'll see that he
  17. has  basically  started  at one side of
  18. the  scroller and then moved a pixel at
  19. a  time  across it until he reaches the
  20. far  side.   There  is a large table of
  21. long  word  values  for  BLTAFWM  which
  22. start  at hex 80008000 and end with hex
  23. 00010001  rotated to the right one each
  24. time.     Then    the    sinetable   is
  25. premultiplied   by  the  width  of  the
  26. screen to give a y coordinate offset.
  27.     This  technique is certainly easier
  28. to follow but not particularly fast, to
  29. optimise  the routine try the following
  30. ideas.
  31.